/*
 * *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.boot.operate.service.impl;

import com.iwindplus.boot.domain.dto.UserCaptchaValidDTO;
import com.iwindplus.boot.domain.vo.UserBindVO;
import com.iwindplus.boot.domain.vo.UserCaptchaValidVO;
import com.iwindplus.boot.operate.service.OperateValidService;
import lombok.extern.slf4j.Slf4j;

/**
 * 默认操作验证业务层接口实现类.
 *
 * @author zengdegui
 * @since 2025/06/06 22:04
 */
@Slf4j
public class DefaultOperateValidServiceImpl implements OperateValidService {

    @Override
    public UserBindVO checkUserBind(Long userId) {
        return UserBindVO.builder()
            .gaBindFlag(Boolean.TRUE)
            .mailBindFlag(Boolean.TRUE)
            .mobileBindFlag(Boolean.TRUE)
            .build();
    }

    @Override
    public UserCaptchaValidVO checkCaptchaByUserId(UserCaptchaValidDTO entity) {
        return UserCaptchaValidVO.builder()
            .gaCheckFlag(Boolean.TRUE)
            .mailCheckFlag(Boolean.TRUE)
            .smsCheckFlag(Boolean.TRUE)
            .build();
    }
}
